package com.atung.parking.request.save;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author wlt
 */
@Data
public class SaveOrUpdateFranchiseRequest implements Serializable {
    @ApiModelProperty("主键编号")
    private  Long id;
    @ApiModelProperty("车场名称")
    @NotBlank(message = "车场名称不能为空")
    private String parkingLotName;
    @ApiModelProperty("城市")
    @NotBlank(message = "城市不能为空")
    private String city;
    @ApiModelProperty("车场地址")
    @NotBlank(message = "车场地址不能为空")
    private String parkingIotAddress;
    @NotBlank(message = "车场联系人不能为空")
    @ApiModelProperty("车场联系人")
    private String contactPerson;
    @ApiModelProperty("车场联系电话")
    @NotBlank(message = "车场联系电话不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "无效的手机号")
    private String contactPhone;
    @ApiModelProperty("车场收费标准")
    @NotBlank(message = "车场收费标准不能为空")
    private String chargingStandard;
}
